package com.ymttest.database.sqlwapper.godmch;

import java.util.List;

import com.ymt.database.SqlManager;
import com.ymttest.database.model.godmch.shop_design_auth;
import com.ymttest.database.model.godmch.shop_design_authExample;
import com.ymttest.utils.EnvSetup;

public class shop_design_authWapper {
	SqlManager manage;
	public shop_design_authWapper() {
		manage = new SqlManager("mysqlgodmchdb" + EnvSetup.getEnv());
		 
	}
	
	public  List<shop_design_auth> selectByExample(shop_design_authExample example) throws InterruptedException {
		List<shop_design_auth> list = manage.getSelectResults("com.ymttest.database.mapping.godmch.shop_design_authMapper.selectByExample",example);
		manage.commit();
		return list;
	}
	
	public  shop_design_auth selectByPrimaryKey(Integer agentType) throws InterruptedException {	
		shop_design_auth model=new shop_design_auth();
		List<shop_design_auth> lst = manage.getSelectResults("com.ymttest.database.mapping.godmch.shop_design_authMapper.selectByPrimaryKey",agentType);
		if(lst.size()>0)
			 model=lst.get(0);
		manage.commit();
		return model;
	}
	
	
	public  Integer updateByPrimaryKey(shop_design_auth record) throws InterruptedException {	

		Integer result= manage.update("com.ymttest.database.mapping.godmch.shop_design_authMapper.updateByPrimaryKey",record);

		manage.commit();
		return result;
	}
	
	public static void main(String args[]) {
	  
	}
}
